package com.shundr.auth.base;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.shundr.auth.R;
import com.shundr.auth.common.view.CListView;

/**
 * 
 * BaseFragment fragment 基类
 * 
 * @author larry 2015-4-13 上午9:40:16
 * @version 1.0.0
 *
 */
public class BaseListViewFragment extends BaseFragment {

	protected CListView mListView;
	protected RelativeLayout mLayoutNoContent;
	protected TextView tvNoContent;

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.base_listview, null);
		mListView = (CListView) view.findViewById(R.id.lv_list);
		mLayoutNoContent = (RelativeLayout) view
				.findViewById(R.id.layout_no_content);
		tvNoContent = (TextView) view.findViewById(R.id.tv_no_content);
		return view;
	}

}
